import { getTickit } from "@/utils/cas";
import service from "@/utils/request";

// const service2: AxiosInstance = axios.create({
//     baseURL: "/lottery/api/v0",
//     // baseURL: 'http://mjkq.cqzhxy.cn:18088/m/api',
//     timeout: 50000,
//   });

export const useAuthParse = (param: string) => {
  return service({
    url: `/mobile/auth/login`,
    method: "POST",
    data: { ticket: getTickit(), client: param },
  });
};
